﻿namespace Glue.Internals.Nulls
{
    internal static class NullExtensions
    {
        public static bool IsNull(this object me)
        {
            return me == null;
        }

        public static Maybe<T> AsMaybe<T>(this T me)
        {
            return new Maybe<T>(me);
        }

        public static Maybe AsMaybe(this object me)
        {
            return new Maybe(me);
        }
    }
}
